<?php
require_once "config.php";
$q = strtolower($_GET["q"]);
if (!$q) return;

$sql="SELECT
`producto`.`nom_producto` as course_name
FROM
`producto`
where `producto`.`nom_producto` LIKE '%$q%'";

$rsd = mysql_query($sql);
while($rs = mysql_fetch_array($rsd)) {
	$cname = $rs['course_name'];
	echo "$cname\n";
}
?>